
const config = {
    app1: {
        name: 'MicroApp1',
        url: 'http://localhost:8111',
        baseroute: '/app1',
        publicPath:'/micro/app1/'
    },
    app2: {
        name: 'MicroApp2',
        url: 'http://localhost:8222',
        baseroute: '/app2',
        publicPath:'/micro/app2/'
    },
}

if (process.env.NODE_ENV === 'production') {
    // 基座应用和子应用部署在同一个域名下，这里使用location.origin进行补全
    Object.keys(config).forEach((key) => {
        config[key].url = window.location.origin
    })


}

export default config
